package com.kjw.learn.springboot.chapter3.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author: KuangJieWen
 * @Date: 2018/1/23 11:19
 * @Description:天河租房的mapper接口
 */
@Mapper
public interface ZuFangMapper {
    @Select("select * from tianhezufang where id = 2")
    List<Map> getAll();
    @Insert("insert into tianhezufang(title,url,create_date) values(#{title},#{url},now())")
    int save(Map param);
}
